<div class="box">
  <div class="box-header">
    <ob_link><a class="btn" href="{:url('friendshipAdd')}"><i class="fa fa-plus"></i> 新 增</a></ob_link>
    <div class="box-tools">
        <div class="input-group input-group-sm search-form">
            <input name="search_data" class="pull-right search-input" value="{:input('search_data')}" placeholder="输入栏目名称" type="text">
            <div class="input-group-btn">
              <button type="button" id="search" url="{:url('friendshiplist')}" class="btn btn-default"><i class="fa fa-search"></i></button>
            </div>
        </div>
    </div>
    <br/>
  </div>
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr>
          <th class="checkbox-select-all">
              <label>
                <input class="flat-grey js-checkbox-all" type="checkbox">
              </label>
          </th>
          <th>标题</th>
          <th>封面图</th>
          <th>友情链接地址</th>
          <th>排序</th>
          <th>是否启用</th>
          <th>操作</th>
      </tr>
      </thead>
      
        <tbody>
            {volist name='list' id='vo'}
                <tr>
                  <td>
                    <label>
                        <input class="flat-grey" type="checkbox" name="ids" value="{$vo.id}">
                    </label>
                  </td>
                  <td>{$vo.friend_tittle}</td>
                  <td>
                      <img class="admin-list-img-size" src="{$vo.cover_id|get_picture_url}"/>
                  </td>
                  <td>{$vo.friend_url}</td>
                <td><input type="text" class="sort-th sort-text" href="{:url('setFriendSort')}" id="{$vo.id}" value="{$vo.sort}" /></td>
                  <td><ob_link><a class="ajax-get" href="{:url('setFriendStatus', array('ids' => $vo['id'], 'status' => (int)!$vo['status']))}">{$vo.status_text}</a></ob_link></td>
                  <td class="col-md-2 text-center">
                      <ob_link><a href="{:url('friendshipEdit', array('id' => $vo['id']))}" class="btn "><i class="fa fa-edit"></i> 编辑</a></ob_link>
                      <ob_link><a class="btn confirm ajax-get" href="{:url('setFriendStatus', array('ids' => $vo['id'], 'status' => $Think.DATA_DELETE))}"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            {/volist}
        </tbody>

    </table>
   
   {include file="layout/batch_btn_group"/}   
  </div>
  <div class="box-footer clearfix text-center">
      {$list->render()}
  </div>
</div>